{yun:}include file="$comstyle/header.htm"{/yun}

<div class="w1000">
    <div class="admin_mainbody"> {yun:}include file="$comstyle/left.htm"{/yun}
        <div class=right_box>
            <div class=admincont_box>
                <div class="com_tit"><span class="com_tit_span">申请列表</span></div>
                <div class="job_list_tit">
                    <ul class="">
                        <li {yun:}if $smarty.get.w=="1" {/yun} class="job_list_tit_cur" {yun:}/if{/yun}>
                            <a href="index.php?c=apply_employe&w=1">待审核认证<span class="job_list_tit_n">{yun:}if $w1>0{/yun}({yun:}$w1{/yun}){yun:}/if{/yun}</span></a>
                        </li>

                        <li {yun:}if $smarty.get.w=="2" {/yun} class="job_list_tit_cur" {yun:}/if{/yun}>
                            <a href="index.php?c=apply_employe&w=2">已通过认证<span class="job_list_tit_n">{yun:}if $w0>0{/yun}({yun:}$w0{/yun}){yun:}/if{/yun}</span></a>
                        </li>

                        <li {yun:}if $smarty.get.w=="3" {/yun} class="job_list_tit_cur" {yun:}/if{/yun}>
                            <a href="index.php?c=apply_employe&w=3">已拒绝认证<span class="job_list_tit_n">{yun:}if $w3>0{/yun}({yun:}$w3{/yun}){yun:}/if{/yun}</span></a>
                        </li>
                        <li {yun:}if $smarty.get.w=="" {/yun} class="job_list_tit_cur" {yun:}/if{/yun}>
                            <a href="index.php?c=apply_employe">所有认证<span class="job_list_tit_n">{yun:}if $w3>0{/yun}({yun:}$w3{/yun}){yun:}/if{/yun}</span></a>
                        </li>

                    </ul>
                </div>
                <div class="com_body">
                    <div class=admin_textbox_04>
                    

                        <div class="clear"></div>


                        <div class="com_body">

                           
                            <div class="clear"></div>
                            <form action="index.php" name="myform" method="get" id='myform' target="supportiframe">
                                <input type="hidden" name="c" value="employeadd" />
                                <input type="hidden" name="act" value="del" />
                                <table class="com_table mt20">
                                    <tr>
                                        <!-- <th>&nbsp;</th> -->
                                        <th>员工名字</th>
                                        <th>员工手机</th>
                                        <th>申请状态</th>
                                        <th >操作</th>
                                    </tr>

                                   {yun:}foreach from=$applys item=list{/yun}
                                    <tr>
                                        <!-- <td><input type="checkbox" name="del[]" value="{yun:}$list.id{/yun}" class="com_Release_job_check"></td> -->

                                        <td align="center">
                                            {yun:}$list.userinfo.realname_jam{/yun}
                                        </td>
                                        <td align="center">{yun:}$list.userinfo.mobile_jam{/yun}</td>
                                        <td align="center">{yun:}$list.status_name{/yun}</td>
                                        <td align="center">
                                            {yun:}if $list.status ==1{/yun}
                                            <a href="javascript:;" class=" com_bth cblue allow"  data-id={yun:}$list.id{/yun}>通过</a>
                                            <a href="javascript:;" class=" com_bth cblue allownot" data-id={yun:}$list.id{/yun}>拒绝</a>
                                            {yun:}/if{/yun}
                                          
                                        </td>
                                    </tr>
                                    {yun:}foreachelse{/yun}
                                    <tr>
                                        <td colspan="9" class="table_end">
                                            <div class="msg_no">
                                                <p>暂无相关申请</p>
                                            </div>  
                                        </td>
                                    </tr>
                                    {yun:}/foreach{/yun}
                                    
                                   <!--  <tr>
                                        <td colspan="8" class="table_end">
                                            <div class="com_Release_job_bot">
                                                <span class="com_Release_job_qx">
                                                    <input id='checkAll' type="checkbox" onclick='m_checkAll(this.form)'class="com_Release_job_qx_check">全选 
                                                </span>
                                                <input class="c_btn_02 c_btn_02_w110" type="button" value="批量删除" onclick="return really('del[]');">
                                            </div>
                                        </td>
                                    </tr> -->
                                   
                                    <tr>
                                        <td colspan="8" class="table_end">
                                            <div class="diggg">{yun:}$pagenav{/yun}</div>
                                        </td>
                                    </tr>
                                </table>
                            </form>
                            <div class="clear"></div>
                        </div>
                        <div class="clear"></div>
                       
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script>
	
	function isBrowseShow(id){
    	$("#"+id).show();
    }
    function isBrowseHide(id){
    	$("#"+id).hide();
    }
    
    $(document).ready(function() {
        $(".browsej").click(function() {
            var browse = $(this).attr('browse');
            var id = $(this).attr('sid');
            $.post("index.php?c=hr&act=hrset", {
                id: id,
                browse: browse
            }, function(data) {
                location.reload();
            });
        });
        /*jam通过*/
        $('.allow').click(function(){
             var id = $(this).attr('data-id');
            layer.confirm('确定要通过该申请吗', function(){
                $.post("index.php?c=apply_employe&act=allow", {
                    id: id,
                    type: 'allow'
                }, function(data) {
                    if(data == 6){
                        layer.msg("已通过",20,9);
                    }else{
                         layer.msg("通过失败",2,8);
                    }
                    window.setTimeout(function(){ 
                        location.reload();
                    }, 3000); 
                    
                });
            });
            
        })
        /*拒绝*/
        $('.allownot').click(function(){
            var id = $(this).attr('data-id');
             layer.confirm('确定要拒绝该申请吗', function(){
                $.post("index.php?c=apply_employe&act=allow", {
                    id: id,
                    type: 'allownot'
                }, function(data) {
                    if(data == 6){
                         layer.msg("已拒绝",2,9);
                    }else{
                        layer.msg("拒绝失败",2,8);
                    }
                    window.setTimeout(function(){ 
                        location.reload();
                    }, 3000); 
                    
                });
            })
           
        })

    });
    
   
    
</script>
<style>
    .admin_resume_dc {
        width: 100%;
        float: left
    }
    
    .admin_resume_dc_p {
        width: 650px;
        float: left;
        padding: 10px 0;
    }
    
    .admin_resume_dc_s {
        display: block;
        width: 110px;
        height: 30px;
        line-height: 30px;
        float: left;
        padding-left: 10px;
        margin: 5px 0px 0px 5px;
        border: 1px solid #eee;
        cursor: pointer
    }
    
    .admin_resume_dc_n {
        width: 110px;
        float: left;
        height: 30px;
        line-height: 30px;
        text-align: right;
    }
    
    .admin_resume_dc_ntext {
        width: 118px;
        border: 1px solid #ddd;
        height: 30px;
        line-height: 30px;
        float: left;
    }
    
    .admin_resume_dc_tip {
        float: left;
        height: 30px;
        line-height: 30px;
    }
    
    .admin_resume_dc_sub {
        width: 650px;
        text-align: center;
        border-top: 1px solid #ddd;
        float: left;
        padding-top: 10px;
    }
    
    .admin_resume_dc_bth1 {
        width: 90px;
        height: 30px;
        background: #f60;
        color: #fff;
        border: none;
        cursor: pointer;
        font-size: 16px;
    }
    
    .admin_resume_dc_bth2 {
        width: 90px;
        height: 30px;
        background: #eee;
        color: #333;
        border: none;
        cursor: pointer;
        margin-left: 10px;
        font-size: 16px;
    }
</style>
{yun:}include file="$comstyle/yqms.htm"{/yun} {yun:}include file="$comstyle/footer.htm"{/yun}